﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sahit.iSoilHotel.Domain.Seedwork;

namespace Sahit.iSoilHotel.Domain.MainBoundedContext.Tavern.Aggregates.AuthenticationAgg
{
    public class AccountRole : Entity
    {
        #region Members

        private ICollection<Permission> permissions;

        #endregion

        #region Properties

        public string Name { get; set; }

        public virtual ICollection<Permission> Permissions
        {
            get
            {
                return this.permissions ?? (this.permissions = new List<Permission>());
            }
            set
            {
                this.permissions = value;
            }
        }

        #endregion
    }
}
